var tblList=null;
var w;

function showList(url_t,callback){
    try{
        w = new UI.Window({
            close:'false',
            theme: "mac_os_x",
            shadow: true, 
            top: 50, 
            left: 50
        });
        w.show(true).focus();  
        w.setSize(500,400,0)
        $$('.content')[0].id='contenido'
        tblList=new TableOrderer('contenido',{
            url:url_t,
            filter:'top',
            callBack:callback
        });
    }catch(e){
        alert(e)
    }
}

function showModal(url,callback,size){
    w = new UI.Window({
        theme: "mac_os_x",
        shadow: true, 
        top: 50, 
        left: 50,
        close:null
    });
    w.show(true).focus();  
    if(size)
        w.setSize(size.w,size.h,0);
    else
        w.setSize(500,400,0);
	   
    w.setAjaxContent(url,{
        method: "GET", 
        onComplete:callback
    });
}